import request from '@/utils/request'
// 列表
export function GetListAPI(params) {
  return request({
    url: '/storage/production-material-return/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/storage/production-material-return/add',
    method: 'POST',
    data
  })
}

// 入库/送检
export function WarehousInspectionAPI(data) {
  return request({
    url: '/storage/purchase-receipt/warehousInspection',
    method: 'POST',
    data
  })
}

// 关结
export function CloseAPI(data) {
  return request({
    url: '/storage/production-material-return/close',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/storage/production-material-return/update',
    method: 'POST',
    data
  })
}

// 删除
export function DelDataAPI(data) {
  return request({
    url: '/storage/production-material-return/delete/' + data,
    method: 'DELETE'
  })
}

// 查看
export function GetDailtAPI(data) {
  return request({
    url: '/storage/production-material-return/view/' + data,
    method: 'GET'
  })
}

// 生产退料明细列表
export function GetDailtListAPI(params) {
  return request({
    url: '/storage/production-detail/list',
    method: 'GET',
    params
  })
}

// 查询脱脂制令单列表
export function GetTuoZhiListAPI(params) {
  return request({
    url: '/production/degreas-document/list',
    method: 'GET',
    params
  })
}

// 查询水刺制令单列表
export function GetShuiciListAPI(params) {
  return request({
    url: '/production/spunlaceOrder/getMoSpunlaceAndDegrease',
    method: 'GET',
    params
  })
}

// 查询分切令单列表
export function GetFenqieListAPI(params) {
  return request({
    url: '/production/cut-orders-document/list',
    method: 'GET',
    params
  })
}
// 获取仓库
export function GetCkByIdAPI(params) {
  return request({
    url: '/production/warehouse/getCkById',
    method: 'GET'
  })
}

// 获取水刺+脱脂列表
export function getSpunlaceAndDegreasListAPI(params) {
  return request({
    url: '/production/degreas-document/getSpunlaceAndDegreasList',
    method: 'GET',
    params
  })
}

// 金蝶数据推送
export function pushAPI(data) {
  return request({
    url: '/storage/production-material-return/push',
    method: 'PUT',
    data
  })
}
